﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Easy.Web.Service.Data
{
    using Easy.BLL;
    /// <summary>
    /// UpdatePass 的摘要说明
    /// </summary>
    public class UpdatePass : BaseHttpHandler
    {

        public override void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string oldpass=context.Request["oldpass"];
            string newpass=context.Request["newpass"];
            SystemUserManager user = new SystemUserManager();
            string message = user.Updatepass(CurrentUserId, oldpass, newpass);
            context.Response.Write(message);
        }

        
    }
}